import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// 引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// 引入core-js
import 'core-js/es/promise';
import 'core-js/es/array/includes';
import 'core-js/es/object/assign';
import 'regenerator-runtime/runtime'; // async/await 支持

// 引入pinia
import pinia from './store'

// 引入路由
import router from './router/permission'

const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(ElementPlus,{locale: zhCn})
app.mount('#app')
